package com.imooc;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.test.mock.web.SpringBootMockServletContext;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.core.io.ResourceLoader;

/**
 * war 包启动类[4]
 * @author gcq
 * @create 2022-02-02
 */
public class WarStarterApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 指向 Application这个 SpringBoot 启动了
        return builder.sources(Application.class);
    }
}